export default {
    namespaced: true,
    state:{
        form : {

        },
        memberData : [],
        oldMemberArr : [],
    },
    mutations:{
        updateForm(state,data){
            state.form = data
        },
        updateMemberData(state,data){
            state.memberData = data;
        },
        updateOldMemberArr(state,data){
            state.oldMemberArr = data;
        },
        updateFormCnid(state,data){
            state.form.cn_id = data.length > 0 ? data[data.length - 1] : data[0];
        },
    }
}